package com.chb.javabasic.jdbc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class MainApplication {
    public static void main(String[] args) {
        // 启动 Spring 应用
        ApplicationContext context = SpringApplication.run(MainApplication.class, args);

        // 从 Spring 容器中获取 userTrying Bean
        UserTrying userTrying = context.getBean(UserTrying.class);


//        userTrying.delete(7L);

//       userTrying.insert();
        userTrying.update(9L);
    }
}
